<div class="commercial goCenter" ng-class="{commercial1:!selfDefineBtn,commercial2:selfDefineBtn}">
    <div class="text-title">商圈定向</div>
    <div class="closeLayer" ng-click="submit('1')"><i class="iconfont bigSize">&#xe608;</i></div>
    <div class="tabSwitch"><span ng-click="selfDefineBtn=false;tradingAreaTypes='1'" ng-class="{current:!selfDefineBtn}">选择商圈</span><span ng-class="{current:selfDefineBtn}"
                                                                                                                                          ng-click="selfDefineBtn=true;tradingAreaTypes='2'">自定义</span></div>
    <div ng-show="!selfDefineBtn" class="chooseBusinessCircle outHide">
        <div class="outHide">
            <div class="fl MR40">
                <div class="title">
                    <span class="font14 MR15">选择城市</span>
                    <my-select dataout="selectProvince" datain="{{province}}" class='selectWrap' defaultname="{{defaultProvince}}" defaultid="defaultProvince"
                               change="changeProvince(selectProvince)">
                        <input type='text' class='select-normal' placeholder="状态" class="mam txt-normal" readonly>
                        <!--<i class='iconfont'>&#xe600;</i>-->
                        <ul class='optionWrap'>
                            <my-option ng-repeat='item in province' class='select-normal' index="{{$index}}" value="item.id" text='{{item.id}}'>{{item.id}}
                            </my-option>
                        </ul>
                    </my-select>
                </div>
                <div class="cityList">
                    <ul>
                        <li ng-repeat="zone in zoneList" ng-init="outerIndex=$index">
                            <p class="zone">{{zone.name}}</p>
                            <ul>
                                <li ng-repeat="item in zone.value" ng-init="innerIndex=$index">
                                    <span class="county">{{item.baName}}
                                    <div class="fCheckBox noSelect fr spaceBefore">
                                        <input type="checkbox" id="{{outerIndex+''+innerIndex}} "
                                               ng-model='item.checked'>
                                        <label class="" for="{{outerIndex+''+innerIndex}}"
                                               ng-click="formatSelectedCounty(item)">
                                        </label>
                                    </div>
                                </span>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="fl">
                <span class="title PT5">已选择</span>
                <div class="cityList">
                    <ul>
                        <li ng-repeat="item in selectedCounty track by $index" class="county">{{item.baName}} <i class="iconfont fr removeCounty" ng-click="removeCounty(item,$index)">&#xe73e;</i></li>
                    </ul>
                </div>
            </div>
        </div>
        <!--<div class="button">-->
            <!--<button class="btn btn-radius btn-warning-border btn-lg big-button" ng-click="submit('1')">取消</button>-->
            <!--<button class="btn btn-radius btn-lg btn-warning" ng-click="submit('2')">确认</button>-->
        <!--</div>-->
        <div class="btnContainer">
            <button ng-click="submit('1')">取消</button>
            <button ng-click="submit('2')">确定</button>
        </div>
    </div>
    <div ng-if="selfDefineBtn">
        <map circle-list="$parent.circleList" close="$parent.showCommercialArea" is-circle-list-empty='isCircleListEmpty()'></map>
    </div>

</div>


<style type="text/css">
    .commercial {
        background: #fff;
        border-radius: 10px;
        padding: 10px 15px;
    }

    .commercial2 {
        width: 940px;
        height: 750px;
    }

    .commercial1 {
        width: 700px;
        height: 650px;
    }

    .commercial2.goCenter {
        position: absolute;
        top: 50%;
        left: 50%;
        margin-left: -470px;
        margin-top: -370px;
    }

    .commercial1.goCenter {
        position: absolute;
        top: 50%;
        left: 50%;
        margin-left: -350px;
        margin-top: -325px;
    }

    .commercial .tabSwitch {
        font-size: 16px;
        color: #b3b3b3;
    }

    .commercial .tabSwitch span {
        margin: 15px;
        margin-left: 0;
        padding-bottom: 5px;
        cursor: pointer;
    }

    .commercial .tabSwitch span.current {
        color: #ff9503;
        border-bottom: 4px solid #ff9503;
    }

    .commercial .selfDefine .leftPart {
        width: 280px;
        margin-right: 10px;
        height: 492px;
        float: left;
    }

    .commercial .selfDefine .leftPart .main {
        border: 1px solid #ccc;
        height: 450px;
    }

    .commercial .selfDefine .leftPart .title,
    .commercial .selfDefine .rightPart .title {
        height: 42px;
    }

    .commercial .selfDefine .leftPart .title {
        font-size: 16px;
        color: #393d40;
        line-height: 42px;
    }

    .commercial .selfDefine .rightPart .title input {
        line-height: 30px;
    }

    .commercial .selfDefine .rightPart .title .userDefined {
        border: none;
        background: #00b2ff;
        padding: 5px 10px;
        color: #fff;
        margin-left: 10px;
        border-radius: 3px;
    }

    .commercial .selfDefine .rightPart .title span {
        line-height: 30px;
    }

    .commercial .selfDefine .rightPart {
        width: 610px;
        height: 492px;
        float: right;
    }

    .commercial .selfDefine .rightPart .main {
        height: 450px;
    }

    .commercial .button {
        margin-left: 0;
        text-align: center;
        margin-top: 40px;
    }

    .commercial .button button {
        float: none;
    }

    .commercial .button button:nth-child(1) {
        background: none;
        border: 1px solid #ffb135;
        color: #ffb135;
    }

    .commercial .selectWrap {
        width: 212px;
    }

    .commercial .cityList {
        width: 313px;
        height: 340px;
        border: 1px solid #ccc;
        margin-top: 10px;
        overflow-y: auto;
    }

    .commercial .cityList .zone {
        /*height: 20px;*/
        background: #dddddd;
        font-size: 16px;
        padding: 3px 0 3px 10px
    }

    .commercial .cityList .county {
        font-size: 14px;
        padding: 10px 0 10px 20px;
        color: #393d40;
        display: block;
        /*cursor: pointer;*/
    }

    .commercial .cityList .removeCounty {
        margin-right: 20px;
        font-size: 14px;
        cursor: pointer;
    }

    .commercial .cityList .county .fCheckBox {
        width: auto;
        margin: 0 10px 0 0;
        padding: 0;
    }

    .commercial .cityList .county:hover {
        background: #e9e5e5;
    }

    .commercial  .title {
        height: 34px;
    }

    .commercial .button button {
        height: 45px;
        width: 120px;
    }
    .commercial .closeLayer{
        width:20px;
        height:28px;
        position:absolute;
        right:30px;
        top:30px;
        cursor: pointer;
    }
</style>